﻿using Mes.Domain.BoundedContext.EntityBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mes.Domain.BoundedContext.Entities.WorkOrders
{
    public class JobStepData : NoIdEntityBase
    {
        public JobStepData() { }

        public JobStepData(string wo_Id,string oper_Id, int step_No, int step_Grp_Id, int state_Cd, DateTime? act_Start_Time_Utc, DateTime? act_Start_Time_Local, DateTime last_Edit_At)
        {
            Wo_Id = wo_Id;
            Oper_Id = oper_Id;
            Step_No = step_No;
            Step_Grp_Id = step_Grp_Id;
            State_Cd = state_Cd;
            Act_Start_Time_Utc = act_Start_Time_Utc;
            Act_Start_Time_Local = act_Start_Time_Local;
            Last_Edit_At = last_Edit_At;
        }

        public string Wo_Id { get; set; } = string.Empty;

        public string Oper_Id { get; set; } = string.Empty;

        public int Step_No { get; set; }

        public int Step_Grp_Id { get; set; }

        public string? Lot_No { get; set; }

        public string? Sublot_No { get; set; }

        public int State_Cd { get; set; }

        public DateTime? Act_Start_Time_Utc { get; set; }

        public DateTime? Act_Start_Time_Local { get; set; }

        public DateTime? Act_Finish_Time_Utc { get; set; }

        public DateTime? Act_Finish_Time_Local { get; set; }

        public string? Step_Data { get; set; }

        public DateTime? Step_Data_Time_Utc { get; set; }

        public DateTime? Step_Data_Time_Local { get; set; }

        public string? Start_User_Id { get; set; }

        public string? Finish_User_Id { get; set; }

        public string? Data_User_Id { get; set; }

        public bool Form_Done { get; set; }

        public string? Spare1 { get; set; }

        public string? Spare2 { get; set; }

        public string? Spare3 { get; set; }

        public string? Spare4 { get; set; }

        public string? Spare5 { get; set; }

        public string? Spare6 { get; set; }

        public string? Last_Edit_Comment { get; set; }

        public string? Last_Edit_By { get; set; }

        public DateTime Last_Edit_At { get; set; }

        public int Row_Id { get; set; }
    }
}
